package com.main.modulemysql.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author IceZhang
 * @since 2018-08-07
 */
public class Equipment extends Model<Equipment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("image_url")
    private String imageUrl;
    @TableField("customer_code")
    private String customerCode;
    /**
     * 编码
     */
    private String code;
    @TableField("pile_no")
    private String pileNo;
    /**
     * 路段编码
     */
    @TableField("section_code")
    private String sectionCode;
    /**
     * 序列号
     */
    @TableField("serial_number")
    private String serialNumber;
    /**
     * 分类编码
     */
    @TableField("category_code")
    private String categoryCode;
    /**
     * 设备制造商编码
     */
    @TableField("oem_code")
    private String oemCode;
    /**
     * 出厂日期
     */
    @TableField("production_date")
    private String productionDate;
    /**
     * 代理商编码
     */
    @TableField("supplier_code")
    private String supplierCode;
    private String direction;
    /**
     * 购买日期
     */
    @TableField("purchase_date")
    private String purchaseDate;
    /**
     * 保修期开始时间
     */
    @TableField("guarantee_begin_date")
    private String guaranteeBeginDate;
    /**
     * 保修期
     */
    @TableField("warranty_period")
    private Integer warrantyPeriod;
    /**
     * 设备制造商负责人
     */
    @TableField("oem_person")
    private String oemPerson;
    /**
     * 代理商负责人
     */
    @TableField("supplier_person")
    private String supplierPerson;
    /**
     * 客户现场负责人
     */
    @TableField("customer_person")
    private String customerPerson;
    /**
     *  '当前状态：0-离线，1-停机，2-故障，3-正常',
     */
    @TableField("current_state")
    private Integer currentState;
    private String location;
    /**
     * 0-禁用，1-正常，9-删除
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;
    /**
     * 最后更新时间
     */
    @TableField("last_update_time")
    private String lastUpdateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getSectionCode() {
        return sectionCode;
    }

    public void setSectionCode(String sectionCode) {
        this.sectionCode = sectionCode;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getOemCode() {
        return oemCode;
    }

    public void setOemCode(String oemCode) {
        this.oemCode = oemCode;
    }

    public String getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(String productionDate) {
        this.productionDate = productionDate;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getGuaranteeBeginDate() {
        return guaranteeBeginDate;
    }

    public void setGuaranteeBeginDate(String guaranteeBeginDate) {
        this.guaranteeBeginDate = guaranteeBeginDate;
    }

    public Integer getWarrantyPeriod() {
        return warrantyPeriod;
    }

    public void setWarrantyPeriod(Integer warrantyPeriod) {
        this.warrantyPeriod = warrantyPeriod;
    }

    public String getOemPerson() {
        return oemPerson;
    }

    public void setOemPerson(String oemPerson) {
        this.oemPerson = oemPerson;
    }

    public String getSupplierPerson() {
        return supplierPerson;
    }

    public void setSupplierPerson(String supplierPerson) {
        this.supplierPerson = supplierPerson;
    }

    public String getCustomerPerson() {
        return customerPerson;
    }

    public void setCustomerPerson(String customerPerson) {
        this.customerPerson = customerPerson;
    }

    public Integer getCurrentState() {
        return currentState;
    }

    public void setCurrentState(Integer currentState) {
        this.currentState = currentState;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Equipment{" +
        ", id=" + id +
        ", imageUrl=" + imageUrl +
        ", customerCode=" + customerCode +
        ", code=" + code +
        ", pileNo=" + pileNo +
        ", sectionCode=" + sectionCode +
        ", serialNumber=" + serialNumber +
        ", categoryCode=" + categoryCode +
        ", oemCode=" + oemCode +
        ", productionDate=" + productionDate +
        ", supplierCode=" + supplierCode +
        ", direction=" + direction +
        ", purchaseDate=" + purchaseDate +
        ", guaranteeBeginDate=" + guaranteeBeginDate +
        ", warrantyPeriod=" + warrantyPeriod +
        ", oemPerson=" + oemPerson +
        ", supplierPerson=" + supplierPerson +
        ", customerPerson=" + customerPerson +
        ", currentState=" + currentState +
        ", location=" + location +
        ", status=" + status +
        ", createTime=" + createTime +
        ", lastUpdateTime=" + lastUpdateTime +
        "}";
    }
}
